<?php

namespace app\common\model;

use think\Model;
use think\Request;

/**
 * @property int $admin_id
 * @property int $tag_id
 */
class AdminTag extends BaseModel
{
    // 表名
    protected $name = 'admin_tag';
    protected $pk = 'admin_id';
    const primaryKey = 'admin_id';

    // 追加属性
    protected $append = [

    ];

    public static function __make(Request $request)
    {
        return (new self())->find($request->param(self::primaryKey));
    }
}
